import React from 'react';
import ReactDOM from 'react-dom';
import reportWebVitals from './reportWebVitals';


// 仓库
import {Provider} from 'react-redux'
import store from './redux/store'


// 全局样式
import './index.css';
import './assets/css/common.less';      // 全
import './assets/css/color.less' ;      // 颜色
import './assets/css/flex.less';
import './assets/css/for.less' ;        // 循环
import './assets/css/text.less'         // 文本类
import './assets/css/position.less'     // 位置相关
import './assets/css/tag.less'          // tag标签
import './assets/css/line.less'
import './assets/css/icon.css'          // 自定义图标库
import './assets/css/iconForClass.css' // 自定义图标库---类名形式
import './assets/css/ProjectCommonCSS.less'     // 项目的公共样式


// 路由器
import {HashRouter, Route, Switch} from 'react-router-dom'
// 页面组件
import Register from "./containers/register/register";
import GetCode from "./containers/getCode/getCode"
import Login from "./containers/login/login";
import Main from "./containers/main/main";


ReactDOM.render((
        <Provider store={store}>
            <HashRouter>
                <Switch>
                    <Route path='/register' component={Register}></Route>
                    <Route path='/getCode' component={GetCode}></Route>
                    <Route path='/login' component={Login}></Route>
                    <Route component={Main}></Route>
                </Switch>
            </HashRouter>
        </Provider>),
    document.getElementById('root')
);
reportWebVitals();
